<template>
  <div class="mainContainer">
    <floatLeft v-show="showPane && !isRoam" @leftViewImp="leftViewImp"></floatLeft>
    <transition name="el-zoom-in-top">
      <floatCenter v-if="showPane && showCenter && !isRoam" :show-air-chart="true"></floatCenter>
    </transition>
    <floatRight v-show="showPane && !isRoam"></floatRight>
  </div>
</template>

<script>
import floatLeft from "@/views/monitor/air/floatLeft";
import floatRight from "@/views/monitor/air/floatRight";
import floatCenter from "@/components/floatCenter";
import {mapGetters} from "vuex";

// 大气监测

export default {
  name: "monitorAir",
  data() {
    return {
      showCenter: true,//显示中间内容
    }
  },
  components: {
    floatLeft, floatRight, floatCenter
  },
  computed: {
    ...mapGetters({
      showPane: 'setting/getPane',
      isRoam: 'setting/getRoam',
    }),
  },
  beforeDestroy() {
  },
  mounted() {
    // window.addResponseEventListener("printMessage", data => {
    //   console.log("接收到像素流消息", data)
    // this.getUe4Data(data)
    // })
  },
  watch: {},
  methods: {
    leftViewImp(bool) {
      this.showCenter = bool
    }
  }
}
</script>

<style scoped>
.mainContainer {
  overflow-x: hidden;
  overflow-y: hidden;
}
</style>
